from util.log import getLogger
logger = getLogger(10)

from common import BROKER_PORT

if __name__ == "__main__":
    from time import sleep
    from local import UdpClient
    from protocal import DpmDataTrans

    client = UdpClient(("127.0.0.1", BROKER_PORT))
    protocal = DpmDataTrans()
    client.set_protocal(protocal)

    client.start()

    # 查询当前协助列表
    protocal.register_list()
    protocal.connect_to_remote()

    input("Input Anything to quit: ")

    client.stop()
    client.join()
    client.destroy()
    print("End")
